﻿using JTTD.Common.Enum;
using System;
using System.Collections.Generic;
using System.Text;
using JTTD.Common.Helper;

namespace JTTD.Domain.Dtos.Integral.Response
{
    /// <summary>
    /// 积分收支记录
    /// </summary>
    public  class IntrgralRecordResponseDto:BaseResponseDto
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 积分记录类型（收入：0，支出：1）
        /// </summary>
        public RecordTypeEnum Type { get; set; }

        /// <summary>
        /// 积分记录类型
        /// </summary>
        public string TypeStr => Type.GetDescription();

        /// <summary>
        /// 积分
        /// </summary>
        public decimal Integral { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime OperatingTime { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public string OperatingTimeStr => OperatingTime.ToString("yyyy-MM-dd HH:mm:ss");

        
        public decimal After { get; set; }

        /// <summary>
        /// 结算前
        /// </summary>
        public decimal Before { get; set; }
    }
}
